package com.iias.communication.domain;


import com.iias.communication.consts.CommunicationConst;

import java.io.Serializable;

public class ServerConfig implements Serializable {

    private static final long serialVersionUID = -2369979191840796706L;

    private Integer port = CommunicationConst.DEFAULT_SERVER_PORT ;
    /**
     * TCP缓冲区大小
     */
    private Integer soBacklog =CommunicationConst.DEFAULT_SO_BACKLOG;
    /**
     * 发送缓冲区大小
     */
    private Integer soSndBuf=CommunicationConst.DEFAULT_SO_SND_BUF;
    /**
     * 接收缓冲区大小
     */
    private Integer soRcvBuf = CommunicationConst.DEFAULT_SO_RCV_BUF;
    /**
     * 是否保持连接
     */
    private boolean soKeepalive = CommunicationConst.DEFAULT_SO_KEEPALIVE;


    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getSoBacklog() {
        return soBacklog;
    }

    public void setSoBacklog(Integer soBacklog) {
        this.soBacklog = soBacklog;
    }

    public Integer getSoSndBuf() {
        return soSndBuf;
    }

    public void setSoSndBuf(Integer soSndBuf) {
        this.soSndBuf = soSndBuf;
    }

    public Integer getSoRcvBuf() {
        return soRcvBuf;
    }

    public void setSoRcvBuf(Integer soRcvBuf) {
        this.soRcvBuf = soRcvBuf;
    }

    public boolean getSoKeepalive() {
        return soKeepalive;
    }

    public void setSoKeepalive(boolean soKeepalive) {
        this.soKeepalive = soKeepalive;
    }
}
